﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true" CodeFile="admin_save_property_attributes.aspx.cs" Inherits="admin_admin_save_property_attributes" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
 <link href="../Styles/style_one_col.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        #TxtAttributeDescription
        {
            width: 500px;
            height: 91px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderBody" Runat="Server">
Property Attributes

 <div id="theForm" style="margin:10px auto 10px auto; width:550px;height:600px; border:none;" runat="server">
    <span>Property Attribute</span>  <br />      
        <select id="LstPropertyAttribute" runat="server" style="width:164px;">
            <option></option>
        </select>
        <br />
        <br />
    <span>Attribute Description<br />
     </span>        
        &nbsp;<textarea id="TxtAttributeDescription" runat="server" 
         spellcheck="True" enableviewstate="false"></textarea>   
        <br />
        <br />     

    <asp:button ID="BtnAddAttribute" runat="server" text="Add Attribute" 
            onclick="BtnAddAttribute_Click" Width="430px" /> 
            <br />
    <asp:button ID="BtnRemoveAttribute" runat="server" text="Remove All Attributes" 
            onclick="BtnRemoveAttribute_Click" Width="430px" />    
    <div>
    <br />
    <span><strong>Attributes</strong></span>
    <asp:GridView ID="GvWebAttributes" runat="server" Width="552px" 
            AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" 
            EnableViewState="False">
        <Columns>
            <asp:BoundField DataField="PomplingAddressID" HeaderText="PomplingAddressID" 
                SortExpression="PomplingAddressID" Visible="False" />
            <asp:BoundField DataField="LookupText" HeaderText="Attribute" 
                SortExpression="LookupText">
            </asp:BoundField>
            <asp:BoundField DataField="AttributeDescription" 
                HeaderText="AttributeDescription" SortExpression="AttributeDescription" />
            <asp:BoundField DataField="Displayposition" HeaderText="Displayposition" 
                SortExpression="Displayposition" Visible="False" />
        </Columns>
        <RowStyle BackColor="White" CssClass="ClsPropertyAttributeCol" />
    </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="SelectpropertyAttributes" TypeName="PropertyAttribute">
            <SelectParameters>
                <asp:QueryStringParameter DefaultValue="0" Name="addressID" 
                    QueryStringField="a" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <br />     
        <asp:Button ID="BtnNext" runat="server" onclick="BtnNext_Click" 
            Text="Next (Main Image)" Width="422px" />
            <br />
            <asp:Button ID="BtnPrevious" runat="server" onclick="BtnPrevious_Click" 
            Text="Previous (Additional information)" Width="422px" />
    </div>
    </div>
    <br />
    <br />
</asp:Content>

